package com.tapstitch.scm.common.utils;

import com.bluebuck.quickboot.core.CollectionUtil;

import java.util.List;

/**
 * @author zhenyu.guo
 * @date 2020/11/3.
 */
public class DataUtils {


    private DataUtils() {}

    public static <T> T selectOne(List<T> list) {
        if (CollectionUtil.isNotEmpty(list)) {
            return list.get(0);
        }
        return null;
    }

}
